package com.xing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.DTO.RoleMenuSaveDTO;
import com.xing.Utils.Result;
import com.xing.entity.SysRoleMenuEntity;

import java.util.List;

public interface SysRoleMenuService extends IService<SysRoleMenuEntity> {

    // 为角色分配权限列表
    Result saveUserRoleRelation(RoleMenuSaveDTO roleMenuSaveDTO);

    // 根据角色id获取权限id
    List<Long> getMenuIdByRoleId(Long roleId);
}
